# import { test, expect } from '@playwright/test';
#
# test.use({
#   locale: 'python'
# });
#
# test('test', async ({ page }) => {
#   await page.goto('https://www.baidu.com/');
#   await page.getByRole('textbox', { name: '巴基斯坦外长当众感谢中国' }).dblclick();
#   await page.getByRole('textbox', { name: '巴基斯坦外长当众感谢中国' }).fill('PO设计模式');
#   await page.getByRole('button', { name: '百度一下' }).click();
#   await page.getByRole('link', { name: '高级搜索' }).click();
#   await page.locator('#adv_keyword').click();
#   await page.locator('#adv_keyword').fill('PO模式');
#   await page.locator('input[name="q6"]').click();
#   await page.locator('input[name="q6"]').fill('baidu');
#   const page1Promise = page.waitForEvent('popup');
#   await page.getByRole('button', { name: '高级搜索' }).click();
#   const page1 = await page1Promise;
# });